package req

import "gitee.com/zaiqiang231/lovesport-user-service/app/model"

type UserCreateReq struct {
	model.User
	Password     string `json:"password" validate:"required" gorm:"not null;comment:用户登录密码"`
	AuthorityIds []uint `json:"authorityIds"`
}

type SetUserAuth struct {
	AuthorityId uint `json:"authorityId" validate:"required"` // 角色ID
}

type SetUserAuthorities struct {
	ID           uint   `json:"id" validate:"required"`
	AuthorityIds []uint `json:"authorityIds" validate:"required"`
}

type SetUserPasswordReq struct {
	ID       uint   `json:"id" validate:"required"`
	Password string `json:"password" validate:"required"`
}
